![]() |
GetCurrentProcess |
||||
Header: | Processes.h | Carbon status: | Supported | |
Gets information about the current process, if any.
OSErr GetCurrentProcess ( ProcessSerialNumber *PSN );
On output, a pointer to the process serial number of the current process, that is, the one currently accessing the CPU. This is the application associated with the CurrentA5 global variable. This application can be running in either the foreground or the background.
A result code.
Applications can use this function to find their own process serial number. Drivers can use this function to find the process serial number of the current process. You can use the returned process serial number in other Process Manager functions.
Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)